package com.example.lianjuan.Utils;

public class UtilsUrl {
    public static String getCategoriesUrl(int materialId, int page) {
        return "discovery/" + materialId + "/" + page;
    }

    public static String getCoverPath(String pict_url, int size) {
        String url = pict_url + "_" + size + "x" + size + ".jpg_.webp";
        return getTicketUrl(url);
    }

    public static String getTicketUrl(String url) {
        if (url.startsWith("http") || url.startsWith("https")) {
            return url;
        } else {
            return "https:" + url;
        }
    }

    public static String getSelectPager(Integer Id) {
        return "recommend/" + Id;
    }
}
